#---------------------------------------------------------------
project(DEW_Client)
#---------------------------------------------------------------
set(HDRS_NET
	./src/Network/Client.h
)
SOURCE_GROUP("Header Files\\Network" FILES ${HDRS_NET})
#---------------------------------------------------------------
set(SRCS_NET
	./src/Network/Client.cpp
)
SOURCE_GROUP("Source Files\\Network" FILES ${SRCS_NET})
#---------------------------------------------------------------
set(HDRS_ACCOUNT
	./src/Account/AccountManager.h
)
SOURCE_GROUP("Header Files\\Account" FILES ${HDRS_ACCOUNT})
#---------------------------------------------------------------
set(SRCS_ACCOUNT
	./src/Account/AccountManager.cpp
)
SOURCE_GROUP("Source Files\\Account" FILES ${SRCS_ACCOUNT})
#---------------------------------------------------------------
set(HDRS_GAME
	./src/Game/GameManager.h
	./src/Game/EntityManager.h
	./src/Game/Entity.h
)
SOURCE_GROUP("Header Files\\Game" FILES ${HDRS_GAME})
#---------------------------------------------------------------
set(SRCS_GAME
	./src/Game/GameManager.cpp
	./src/Game/EntityManager.cpp
)
SOURCE_GROUP("Source Files\\Game" FILES ${SRCS_GAME})
#---------------------------------------------------------------
set(HDRS_RENDER
	./src/Render/RenderManager.h
)
SOURCE_GROUP("Header Files\\Render" FILES ${HDRS_RENDER})
#---------------------------------------------------------------
set(SRCS_RENDER
	./src/Render/RenderManager.cpp
)
SOURCE_GROUP("Source Files\\Render" FILES ${SRCS_RENDER})
#---------------------------------------------------------------
set(HDRS
	${HDRS_NET}
	${HDRS_ACCOUNT}
	${HDRS_GAME}
	${HDRS_RENDER}
)
#---------------------------------------------------------------
set(SRCS
	./src/main.cpp
	${SRCS_NET}
	${SRCS_ACCOUNT}
	${SRCS_GAME}
	${SRCS_RENDER}
)
#---------------------------------------------------------------
include(${CubeMUD_SOURCE_DIR}/Common/cmake/Config.cmake)
#---------------------------------------------------------------
set(CMAKE_MODULE_PATH ${CubeMUD_SOURCE_DIR}/Client/cmake/Modules)
find_package(Irrlicht REQUIRED)
#---------------------------------------------------------------
set(CMAKE_MODULE_PATH ${CubeMUD_SOURCE_DIR}/Common/cmake/Modules)
find_package(ZLIB REQUIRED)
find_package(ClanLib REQUIRED)
#---------------------------------------------------------------
include_directories(${CubeMUD_SOURCE_DIR}/Client/include)
include_directories(${CubeMUD_SOURCE_DIR}/Client/src)
#---------------------------------------------------------------
if(MSVC)
	add_definitions(-D_IRR_STATIC_LIB_)
endif(MSVC)
#---------------------------------------------------------------
add_executable(DEW_Client
	${HDRS} ${SRCS}
)
#---------------------------------------------------------------
set_target_properties(DEW_Client PROPERTIES DEBUG_POSTFIX _d)
set_target_properties(DEW_Client PROPERTIES LINKER_LANGUAGE CXX)
#---------------------------------------------------------------
target_link_libraries(DEW_Client
	TotemEDK
	debug ${IRR_LIB_DEBUG} optimized ${IRR_LIB_RELEASE}
	debug ${ZLIB_LIBRARY_DEBUG} optimized ${ZLIB_LIBRARY_RELEASE}
	debug ${CL_CORE_LIB_DEBUG} optimized ${CL_CORE_LIB_RELEASE}
	debug ${CL_NET_LIB_DEBUG} optimized ${CL_NET_LIB_RELEASE}
)
#---------------------------------------------------------------